import { ApiProperty, PartialType } from '@nestjs/swagger';
import { ResFailDto, ResSuccessDto } from 'src/shared-module/dto/base.dto';

export class SetClockItemReqDto {
  @ApiProperty({
    required: true,
  })
  id: string;

  @ApiProperty({
    required: true,
  })
  name: string;

  @ApiProperty({
    required: true,
  })
  tags: Array<string>;

  @ApiProperty({
    type: Number,
    description: '5-90分钟',
    default: 30,
  })
  target: number;
}

export class SetClockItemResSuccessDto extends PartialType(ResSuccessDto) {}

export class SetClockItemResFailDto extends PartialType(ResFailDto) {}
